$(function(){
	var	oShare=$1("#share");

	//分享到移入移出
	oShare.onmouseover=function(){
		clearInterval(oShare.timer)
		startMove(oShare,{right:0})
	}
	oShare.onmouseout=function(){
		clearInterval(oShare.timer)
		startMove(oShare,{right:-272})
	}
//left客服
		//鼠标移入移出
	$("#online_service").mouseover(function(){
		$(this).hide();
		$("#online_content").show();
	}).mouseout(function(){
		$(this).show();
		$("#online_content").hide();
	})
	$("#online_content").mouseover(function(){
		$(this).show();
		$("#online_service").hide();
	}).mouseout(function(){
		$(this).hide();
		$("#online_service").show();
	})
	
	//左定位栏鼠标效果
	$("#left_fixed li").mouseover(function(){
		$(this).css("background","#f47a86").find("div").show().stop().animate({left:50,opacity:100},500);
	}).mouseout(function(){
		$(this).css("background","#f55c6b").find("div").hide().stop().animate({left:0,opacity:0},500);
	})
	
	//在线客服滚动条跟随
	$(window).scroll(function(){
		var scrollTop=document.documentElement.scrollTop||document.body.scrollTop,
			sH=$("#online_service").height(),
			cH=document.documentElement.clientHeight,
			H=scrollTop+(cH-sH)/3;
			$("#online_service").stop().animate({top:H},100);
			$("#online_content").stop().animate({top:H},100);
	})
	//收藏
	$(".sc").click(function(){
		
		$("#cover").show().animate({width:0,height:0,top:0,left:900,opacity:0},function(){
			$("#cover").hide().css({width:1280,height:600,left:0,top:40,opacity:.6})
		})
	})

	console.log($(document).height());
	console.log($(window).height());

})
